/*
 * @Description:: 请补充填写
 * @Version: 1.0
 * @Author: 小白
 * @Date: 2022-04-25 15:58:33
 * @LastEditors: smallWhite
 * @LastEditTime: 2023-09-07 13:08:11
 * @FilePath: /siana_admin/src/api_new/api.js
 */

// export const baseUrl = 'https://gptnew.v-wim.xyz'
// export const baseUrl = 'https://6e8d-61-176-96-198.ngrok-free.app'
let baseUrl
switch (process.env.NODE_ENV) {
  case 'development':
    baseUrl = 'http://127.0.0.1:8088/'
    // baseUrl = 'https://gptnew.v-wim.xyz'
    break
  case 'production':
    baseUrl = 'http://47.236.110.33:8088/'
    break
}
export const HTTP_URI = {
  BASEURL: baseUrl,
  LOGIN: baseUrl + '/auth/admin/login',
  HOME: baseUrl + '/sys/user/admin/home',
  USERLIST: baseUrl + '/sys/user/queryPage',
  USEREDIT: baseUrl + '/sys/user/update',
  USERADD: baseUrl + '/sys/user/add',
  USERDELETE: baseUrl + '/sys/user/delete',

  SYSTEMSETTING: baseUrl + '/sys/config/queryPage',
  SYSTEMEDIT: baseUrl + '/sys/config/update',
  PAYSETTING: baseUrl + '/sys/pay/config/query',
  PAYSETTINGEDIT: baseUrl + '/sys/pay/config/update',
//
  QUERYKEYCONFIG: baseUrl + '/sys/config/queryKey',
  UPDATEKEYCONFIG: baseUrl + '/sys/config/updateKey',
  PRODUCTLIST: baseUrl + '/sys/product/queryPage',
  PRODUCTADD: baseUrl + '/sys/product/add',
  PRODUCTUPDATE: baseUrl + '/sys/product/update',
  PRODUCTDELETE: baseUrl + '/sys/product/delete',

  GPTKEYLIST: baseUrl + '/sys/gpt/key/queryPage',
  GPTKEYUPDETE: baseUrl + '/sys/gpt/key/updateState',
  GPTKEYADD: baseUrl + '/sys/gpt/key/add',
  GPTKEYDELETE: baseUrl + '/sys/gpt/key/delete',

  ORDERLIST: baseUrl + '/sys/order/query',
  ORDERCHECKED: baseUrl + '/sys/order/yi/return/url',

  EMAILLIST: baseUrl + '/sys/email/config/queryPage',
  EMAILADD: baseUrl + '/sys/email/config/add',
  EMAILUPDATE: baseUrl + '/sys/email/config/update',
  EMAILDELETE: baseUrl + '/sys/email/config/delete',

  CARDPINLIST: baseUrl + '/sys/card/pin/queryPage',
  CARDPINADD: baseUrl + '/sys/card/pin/add',
  CARDPINUPDATE: baseUrl + '/sys/card/pin/update',
  CARDPINDELETE: baseUrl + '/sys/card/pin/delete',
  CARDPINALLLIST: baseUrl + '/sys/card/pin/getAllCardPin',

  ERRORLOG: baseUrl + '/sys/error/message/queryPage',
  UPLOADIMG: baseUrl + '/sys/config/upload/img',
  LOOKGPTKEY: baseUrl + '/sys/gpt/key/billing',

  LORALIST: baseUrl + '/sys/sd/config/query/lora/page',
  LORAADD: baseUrl + '/sys/sd/config/add/lora',
  LORAUPDATE: baseUrl + '/sys/sd/config/update/lora',
  LORADELETE: baseUrl + '/sys/sd/config/delete/lora',
  SDMODELLIST: baseUrl + '/sys/sd/config/query/model/page',
  SDMODELADD: baseUrl + '/sys/sd/config/add/model',
  SDMODELUPDATE: baseUrl + '/sys/sd/config/update/model',
  SDMODELDELETE: baseUrl + '/sys/sd/config/delete/model',

  ROLELIST: baseUrl + '/sys/gpt/role/queryPage',
  ROLEADD: baseUrl + '/sys/gpt/role/add',
  ROLEEDIT: baseUrl + '/sys/gpt/role/update',
  ROLEDEL: baseUrl + '/sys/gpt/role/delete',

  NOTICELIST: baseUrl + '/sys/announcement/queryPage',
  NOTICEEDIT: baseUrl + '/sys/announcement/update',

  MJDJOURNEYLIST: baseUrl + '/sys/discord/account/config/queryPage',
  MJDJOURNEYADD: baseUrl + '/sys/discord/account/config/add',
  MJDJOURNEYUPDATE: baseUrl + '/sys/discord/account/config/update',
  MJDJOURNEYDELETE: baseUrl + '/sys/discord/account/config/delete'
}
export default { HTTP_URI, baseUrl }
